from page.base_page import BasePage
from appium.webdriver.common.mobileby import By

class HwsPage(BasePage):
    #输入框
    srk_locator = (By.ID,'com.gfeng.daydaycook:id/qmuill_search')
    dy_locator = (By.XPATH, '//android.widget.TextView[@text=\"日日煮自热系列-鲍鱼佛跳墙捞饭\"]')
    #操作方法
    def click_srk(self):
        self.driver.find_element(*self.srk_locator).click()

    # 获取文本
    def hq_text(self):
        self.driver.find_element(*self.dy_locator).get_attribute("text")